package com.gw.quotes.activity;

import android.os.Bundle;

import com.gw.quotes.R;
import com.gw.quotes.view.TouchImageView;
import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.ImageLoader;

public class ViewImageActivity extends BaseActivity {
	private String url = null;
	private TouchImageView imageView;
	private ImageLoader imageLoader = ImageLoader.getInstance();
	private DisplayImageOptions options;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_view_image);
		url = getIntent().getStringExtra("url");
//		options = new DisplayImageOptions.Builder()
//				.showImageForEmptyUri(R.drawable.ic_empty)
//				.showImageOnFail(R.drawable.ic_empty)
//				.resetViewBeforeLoading(true).cacheOnDisk(true)
//				.imageScaleType(ImageScaleType.EXACTLY)
//				.bitmapConfig(Bitmap.Config.RGB_565)
//				.displayer(new FadeInBitmapDisplayer(500)).build();
		imageView = (TouchImageView) this.findViewById(R.id.image);
		imageLoader.displayImage(url, imageView, options);
	}
}